package com.bolt.core.view.components;

import com.bolt.common.utils.DateUtil;

import java.util.Date;


public class DateHtmlRender implements HtmlRender {
	
	@Override
    public String render(Object parent, Object data, String format){
		if(data== null){
			return "";
		}
		return DateUtil.formatDate((Date)data, format);
		
	}
}
